//
//  MyNetworkTools.h
//  SinaWeibo
//
//  Created by Apple on 16/8/21.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import "AFHTTPSessionManager.h"
#import "UserModel.h"
#import "StatuesModel.h"

typedef void(^successUser)(UserModel *user);
typedef void(^failure)(NSError *error);
typedef void(^successStatues)(NSArray *statues);
typedef void(^successBadge)(NSString *badgeValue);




@interface MyNetworkTools : AFHTTPSessionManager



+(instancetype)shareManger;

-(void)getUserinfoSuccess:(successUser)success failure:(failure)failure;

-(void)getStatuesSuccess:(successStatues)success failure:(failure)failure;

-(void)getNewStatuesWithSince_id:(NSString *)since_id Success:(successStatues)success failure:(failure)failure;

-(void)getNewStatuesWithMax_id:(NSString *)max_id Success:(successStatues)success failure:(failure)failure;

-(void)getUnreadSuccess:(successBadge)success failure:(failure)failure;


@end
